package com.gxuwz.medical.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gxuwz.medical.dao.IUserDao;
import com.gxuwz.medical.entity.User;
import com.gxuwz.medical.service.IUserService;

@Service
public class UserServiceImpl implements IUserService {
	
	@Autowired
	private IUserDao userDao;

	@Override
	public void save(User user) {
		userDao.save(user);
	}

	@Override
	public boolean check(String userid, String pwd) {
		User user=userDao.findByID(userid, pwd);
		if(user==null){
			return false;
		}else{
			return true;
		}
		}

}
